package team.lourd.network.system.batch.domian;

import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;
import team.lourd.network.system.batch.logic.Form;
import team.lourd.network.system.own.domain.Detail;
import team.lourd.network.system.own.domain.Model;
import team.lourd.network.system.own.domain.pretrem.PMType;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 元素模型
 *
 * @author JADemo
 * @date 2019/2/18 10:37
 */
@Data
@Document("process_meta")
public class ProcessMeta {
    private String id;
    // 目标位置
    private String target;
    // 预处理表达式
    private String processExpression;
    // 处理的路径,如果是根节点的话就不会有processPaths
    private List<ProcessPath> processPaths = new ArrayList<>();
    // 元素的形状
    private Form form;
    // 是否有效的
    private Boolean valid;
    // 表达式的类型
    private PMType type;
    // 参数
    private Map<String, Object> parameter = new HashMap<>();
}
